/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Pantalla_Principal.java
 *
 * Created on 30/03/2011, 09:05:46 PM
 */
package ruta_mas_corta;

//import com.sun.jndi.ldap.Ber;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ImageIcon;

/**
 *
 * @author movs_666:
 *
 * PROYECTO DE RUTAS ..... A MORIRRRR
 *
 */
public class Pantalla_Principal extends javax.swing.JFrame {

    /** Creates new form Pantalla_Principal */
    public Pantalla_Principal() {
        initComponents();
        setExtendedState(this.MAXIMIZED_BOTH);
        setLocationRelativeTo(null);
    }
    Rutas roptima;
    int numeroRuta = 0;
    int numeroHora = 0;
    String rutafinal = "";

    public void obtenerdatos() {
        if (comboBoxRectIcon1.getSelectedIndex() == 0) {
            numeroRuta = 1;
        } else if (comboBoxRectIcon1.getSelectedIndex() == 1) {
            numeroRuta = 2;
        } else if (comboBoxRectIcon1.getSelectedIndex() == 2) {
            numeroRuta = 3;
        }
        if (comboBoxRectIcon2.getSelectedIndex() == 0) {
            numeroHora = 1;
        } else if (comboBoxRectIcon2.getSelectedIndex() == 1) {
            numeroHora = 2;
        } else if (comboBoxRectIcon2.getSelectedIndex() == 2) {
            numeroHora = 3;
        } else if (comboBoxRectIcon2.getSelectedIndex() == 3) {
            numeroHora = 4;
        }
        //jTextArea1.setText(""+numeroHora+ numeroRuta);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jSplitPane1 = new javax.swing.JSplitPane();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        comboBoxRectIcon1 = new org.edisoncor.gui.comboBox.ComboBoxRectIcon();
        jLabel4 = new javax.swing.JLabel();
        comboBoxRectIcon2 = new org.edisoncor.gui.comboBox.ComboBoxRectIcon();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        buttonNice1 = new org.edisoncor.gui.button.ButtonNice();
        jPanel2 = new javax.swing.JPanel();
        jLabel14 = new javax.swing.JLabel();
        jPanel6 = new javax.swing.JPanel();
        cruce1 = new javax.swing.JLabel();
        cruce2 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        ber7 = new javax.swing.JLabel();
        ber6 = new javax.swing.JLabel();
        ber5 = new javax.swing.JLabel();
        ber4 = new javax.swing.JLabel();
        ber3 = new javax.swing.JLabel();
        ber2 = new javax.swing.JLabel();
        ber1 = new javax.swing.JLabel();
        ber8 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        juan1 = new javax.swing.JLabel();
        juan2 = new javax.swing.JLabel();
        juan3 = new javax.swing.JLabel();
        juan4 = new javax.swing.JLabel();
        juan5 = new javax.swing.JLabel();
        juan6 = new javax.swing.JLabel();
        juan7 = new javax.swing.JLabel();
        juan8 = new javax.swing.JLabel();
        cruceRocafuerte = new javax.swing.JLabel();
        jPanel7 = new javax.swing.JPanel();
        sanFrancisco = new javax.swing.JLabel();
        catedral = new javax.swing.JLabel();
        santoDomingo = new javax.swing.JLabel();
        sanSebastian = new javax.swing.JLabel();
        jPanel8 = new javax.swing.JPanel();
        jPanel3 = new javax.swing.JPanel();
        sucre2 = new javax.swing.JLabel();
        sucre1 = new javax.swing.JLabel();
        sucre3 = new javax.swing.JLabel();
        sucre4 = new javax.swing.JLabel();
        sucre5 = new javax.swing.JLabel();
        sucre6 = new javax.swing.JLabel();
        sucre7 = new javax.swing.JLabel();
        sucre8 = new javax.swing.JLabel();
        cruceCol = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        bolo1 = new javax.swing.JLabel();
        bolo2 = new javax.swing.JLabel();
        bolo3 = new javax.swing.JLabel();
        bolo4 = new javax.swing.JLabel();
        cruceLou = new javax.swing.JLabel();
        parq = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jSplitPane1.setDividerLocation(300);

        jLabel1.setFont(new java.awt.Font("Comic Sans MS", 1, 18));
        jLabel1.setText("INGRESE LOS DATOS ");

        jLabel2.setFont(new java.awt.Font("Comic Sans MS", 1, 14));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setText("DESDE LA IGLESIA DE SAN SEBASTIAN");

        jLabel3.setFont(new java.awt.Font("Comic Sans MS", 1, 14));
        jLabel3.setText("DESTINO");

        comboBoxRectIcon1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "La catedral", "Santo domingo", "San francisco" }));
        comboBoxRectIcon1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                comboBoxRectIcon1ActionPerformed(evt);
            }
        });

        jLabel4.setFont(new java.awt.Font("Comic Sans MS", 1, 14));
        jLabel4.setText("HORA DEL DIA");

        comboBoxRectIcon2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "6 a 10 am", "10 am a 13 pm", "13 pm a 19 pm", "19 pm a morir" }));

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        buttonNice1.setText("GENERAR RUTA");
        buttonNice1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonNice1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(comboBoxRectIcon1, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(46, 46, 46)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addComponent(comboBoxRectIcon2, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
                        .addGap(62, 62, 62)
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(217, 217, 217))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(buttonNice1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(260, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(204, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 276, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(226, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(44, 44, 44)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40)
                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(53, 53, 53)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(comboBoxRectIcon2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(comboBoxRectIcon1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addComponent(buttonNice1, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(54, 54, 54)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(61, Short.MAX_VALUE))
        );

        jSplitPane1.setLeftComponent(jPanel1);

        jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        ber7.setText("colon");

        ber6.setText("jose");

        ber5.setText("10 ago");

        ber4.setText("roca");

        ber3.setText("miguel");

        ber2.setText("azuay");

        ber1.setText("merca");

        ber8.setText("imba");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(ber1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30)
                .addComponent(ber2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30)
                .addComponent(ber3, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(ber4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(39, 39, 39)
                .addComponent(ber5, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(30, 30, 30)
                .addComponent(ber6, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(ber7, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(ber8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(40, 40, 40))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(ber1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(ber3, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                        .addComponent(ber2, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                        .addComponent(ber5, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                        .addComponent(ber7, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                        .addComponent(ber6, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                        .addComponent(ber8, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                        .addComponent(ber4, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        juan1.setText("merca");

        juan2.setText("azuay");

        juan3.setText("miguel");

        juan4.setText("roca");

        juan5.setText("10 ago");

        juan6.setText("jose");

        juan7.setText("colon");

        juan8.setText("imba");

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(juan1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(juan2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(juan3, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(juan4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(juan5, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(26, 26, 26)
                .addComponent(juan6, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(juan7, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(juan8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(juan1, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan2, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan3, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan5, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan6, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan7, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan8, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)
                    .addComponent(juan4, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addGap(8, 8, 8)
                                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 763, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel6Layout.createSequentialGroup()
                                .addComponent(cruce1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(cruceRocafuerte, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(155, 155, 155)
                                .addComponent(cruce2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(200, 200, 200))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cruce1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cruce2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(cruceRocafuerte, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(38, 38, 38)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(38, 38, 38))
        );

        sanFrancisco.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ruta_mas_corta/sanfrancisco.icono.jpg"))); // NOI18N

        catedral.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ruta_mas_corta/catedral.icono.jpg"))); // NOI18N

        santoDomingo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ruta_mas_corta/santodomingo.icono.jpg"))); // NOI18N

        sanSebastian.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ruta_mas_corta/sanSebastian.icono.jpg"))); // NOI18N

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addComponent(sanSebastian)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 353, Short.MAX_VALUE)
                .addComponent(santoDomingo)
                .addGap(85, 85, 85)
                .addComponent(catedral)
                .addGap(121, 121, 121)
                .addComponent(sanFrancisco)
                .addGap(23, 23, 23))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                .addContainerGap(22, Short.MAX_VALUE)
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(sanFrancisco)
                    .addComponent(catedral)
                    .addComponent(santoDomingo)
                    .addComponent(sanSebastian, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        sucre2.setText("Merca");

        sucre1.setText("Lourdes");

        sucre3.setText("azuay");

        sucre4.setText("miguel");

        sucre5.setText("rocafu");

        sucre6.setText("10 ago");

        sucre7.setText("jose");

        sucre8.setText("colon");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(sucre1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(sucre2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(sucre3, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addComponent(sucre4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(sucre5, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(42, 42, 42)
                .addComponent(sucre6, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(sucre7, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(sucre8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(83, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(sucre1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre5, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre8, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(sucre6, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jPanel9.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));

        bolo1.setText("imba");

        bolo2.setText("colon");

        bolo3.setText("10 ago");

        bolo4.setText("rocafu");

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addContainerGap(418, Short.MAX_VALUE)
                .addComponent(bolo4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(66, 66, 66)
                .addComponent(bolo3, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(107, 107, 107)
                .addComponent(bolo2, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(35, 35, 35)
                .addComponent(bolo1, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(bolo4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(bolo3, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(bolo1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(bolo2, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(cruceLou, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 464, Short.MAX_VALUE)
                        .addComponent(parq, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(94, 94, 94)
                        .addComponent(cruceCol, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(140, 140, 140))
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(cruceCol, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(cruceLou, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(parq, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(24, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(26, 26, 26)
                        .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(105, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(255, 255, 255)
                        .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jSplitPane1.setRightComponent(jPanel2);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1455, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 674, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void buttonNice1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonNice1ActionPerformed
        obtenerdatos();
        roptima = new Rutas();
        rutafinal = roptima.metodoUno(numeroRuta, numeroHora);
        jTextArea1.setText(rutafinal);
        MIarbol carrito=new MIarbol();
        carrito.fijarRuta(numeroRuta, numeroHora);
        try {
            carrito.start();
        } catch (Exception e) {
            System.out.println("  "+e);
        }
        // TODO add your handling code here:
    }//GEN-LAST:event_buttonNice1ActionPerformed

    private void comboBoxRectIcon1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_comboBoxRectIcon1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_comboBoxRectIcon1ActionPerformed



    class MIarbol extends Thread{
        
        private int numerRuta;
        private int numerHora;
        public void fijarRuta(int r,int h){
            setNumerRuta(r);
            setNumerHora(h);

        }

    @Override
        public void run() {
        /*
         * DESTINO NUMERO UNO CATEDARL......
         *
         */
            if (getNumerRuta()==1){
                System.out.println("    "+getNumerRuta());
                if (getNumerHora()==1||getNumerHora()==4){
                   System.out.println("   "+getNumerHora());
                   try {
                       ber1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber1.setIcon(null);
                       ber2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber2.setIcon(null);
                       ber3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber3.setIcon(null);
                       ber4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber4.setIcon(null);
                       ber5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber5.setIcon(null);
                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }else  if (getNumerHora()==2){
                   System.out.println("   "+getNumerHora());
                   try {
                       ber1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber1.setIcon(null);
                       cruce1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruce1.setIcon(null);

                       juan1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan1.setIcon(null);
                       juan2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan2.setIcon(null);
                       juan3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan3.setIcon(null);
                       juan4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan4.setIcon(null);
                       juan5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan5.setIcon(null);
                       juan6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan6.setIcon(null);

                       cruce2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruce2.setIcon(null);
                       ber6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber6.setIcon(null);

                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }else if (getNumerHora()==3){
                   System.out.println("   "+getNumerHora());
                   try {
                       cruceLou.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruceLou.setIcon(null);

                       sucre1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre1.setIcon(null);
                       sucre2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre2.setIcon(null);

                       sucre3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre3.setIcon(null);
                       sucre4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre4.setIcon(null);
                       sucre5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre5.setIcon(null);
                       sucre6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre6.setIcon(null);
                       parq.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       parq.setIcon(null);
                       bolo3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo3.setIcon(null);


                       
                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }
            }
            /*
             * 
             * DESTINO NUMERO DOS SANTO DOMINGO.
             * 
             * 
             * 
             * 
             * 
             */
            if (getNumerRuta()==2){
                System.out.println("    "+getNumerRuta());
                if (getNumerHora()==1||getNumerHora()==4){
                   System.out.println("   "+getNumerHora());
                   try {
                       ber1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber1.setIcon(null);
                       ber2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber2.setIcon(null);
                       ber3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber3.setIcon(null);
                       ber4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber4.setIcon(null);

                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }else  if (getNumerHora()==2){
                   System.out.println("   "+getNumerHora());
                   try {
                       ber1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber1.setIcon(null);
                       cruce1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruce1.setIcon(null);

                       juan1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan1.setIcon(null);
                       juan2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan2.setIcon(null);
                       juan3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan3.setIcon(null);
                       juan4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan4.setIcon(null);
                       cruceRocafuerte.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruceRocafuerte.setIcon(null);

                       ber4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber4.setIcon(null);


                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }else if (getNumerHora()==3){
                   System.out.println("   "+getNumerHora());
                   try {
                       cruceLou.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruceLou.setIcon(null);

                       sucre1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre1.setIcon(null);
                       sucre2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre2.setIcon(null);

                       sucre3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre3.setIcon(null);
                       sucre4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre4.setIcon(null);
                       sucre5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre5.setIcon(null);
                       sucre6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre6.setIcon(null);
                       parq.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       parq.setIcon(null);
                       bolo3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo3.setIcon(null);
                       bolo4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo4.setIcon(null);

                        

                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }
            }
                /*
             *
             * DESTINO NUMERO TRES SAN FRANCISCO.
             *
             *
             *
             *
             *
             */
            if (getNumerRuta()==3){
                System.out.println("    "+getNumerRuta());
                if (getNumerHora()==1||getNumerHora()==4){
                   System.out.println("   "+getNumerHora());
                   try {
                       ber1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber1.setIcon(null);
                       ber2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber2.setIcon(null);
                       ber3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber3.setIcon(null);
                       ber4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber4.setIcon(null);
                       ber5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber5.setIcon(null);
                       ber6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber6.setIcon(null);
                       ber7.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber7.setIcon(null);
                       ber8.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber8.setIcon(null);

                       bolo1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo1.setIcon(null);
                       bolo2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo2.setIcon(null);




                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }else  if (getNumerHora()==2){
                   System.out.println("   "+getNumerHora());
                   try {
                       ber1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber1.setIcon(null);
                       cruce1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruce1.setIcon(null);

                       juan1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan1.setIcon(null);
                       juan2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan2.setIcon(null);
                       juan3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan3.setIcon(null);
                       juan4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan4.setIcon(null);
                       juan5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan5.setIcon(null);
                       juan6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan6.setIcon(null);
                       juan7.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan7.setIcon(null);
                       juan8.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       juan8.setIcon(null);

                       ber8.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       ber8.setIcon(null);
                       bolo1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo1.setIcon(null);
                       bolo2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo2.setIcon(null);



                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }else if (getNumerHora()==3){
                   System.out.println("   "+getNumerHora());
                   try {
                       cruceLou.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruceLou.setIcon(null);

                       sucre1.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre1.setIcon(null);
                       sucre2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre2.setIcon(null);

                       sucre3.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre3.setIcon(null);
                       sucre4.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre4.setIcon(null);
                       sucre5.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre5.setIcon(null);
                       sucre6.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre6.setIcon(null);
                       sucre7.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre7.setIcon(null);
                       sucre8.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       sucre8.setIcon(null);
                       cruceCol.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       cruceCol.setIcon(null);
                       bolo2.setIcon(new ImageIcon(getClass().getResource("icono.carrito.jpg")));
                       Thread.sleep(1000);
                       bolo2.setIcon(null);

                   } catch (InterruptedException ex) {
                        Logger.getLogger(Pantalla_Principal.class.getName()).log(Level.SEVERE, null, ex);
                        System.out.println(""+ex);
                    }

                }
            }
            

        }
        public int getNumerRuta() {
            return numerRuta;
        }

        /**
         * @param numerRuta the numerRuta to set
         */
        public void setNumerRuta(int numerRuta) {
            this.numerRuta = numerRuta;
        }

        /**
         * @return the numerHora
         */
        public int getNumerHora() {
            return numerHora;
        }

        /**
         * @param numerHora the numerHora to set
         */
        public void setNumerHora(int numerHora) {
            this.numerHora = numerHora;
        }

        }

        /**
         * @return the numerRuta
         */
        













    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Pantalla_Principal().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel ber1;
    private javax.swing.JLabel ber2;
    private javax.swing.JLabel ber3;
    private javax.swing.JLabel ber4;
    private javax.swing.JLabel ber5;
    private javax.swing.JLabel ber6;
    private javax.swing.JLabel ber7;
    private javax.swing.JLabel ber8;
    private javax.swing.JLabel bolo1;
    private javax.swing.JLabel bolo2;
    private javax.swing.JLabel bolo3;
    private javax.swing.JLabel bolo4;
    private org.edisoncor.gui.button.ButtonNice buttonNice1;
    private javax.swing.JLabel catedral;
    private org.edisoncor.gui.comboBox.ComboBoxRectIcon comboBoxRectIcon1;
    private org.edisoncor.gui.comboBox.ComboBoxRectIcon comboBoxRectIcon2;
    private javax.swing.JLabel cruce1;
    private javax.swing.JLabel cruce2;
    private javax.swing.JLabel cruceCol;
    private javax.swing.JLabel cruceLou;
    private javax.swing.JLabel cruceRocafuerte;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSplitPane jSplitPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JLabel juan1;
    private javax.swing.JLabel juan2;
    private javax.swing.JLabel juan3;
    private javax.swing.JLabel juan4;
    private javax.swing.JLabel juan5;
    private javax.swing.JLabel juan6;
    private javax.swing.JLabel juan7;
    private javax.swing.JLabel juan8;
    private javax.swing.JLabel parq;
    private javax.swing.JLabel sanFrancisco;
    private javax.swing.JLabel sanSebastian;
    private javax.swing.JLabel santoDomingo;
    private javax.swing.JLabel sucre1;
    private javax.swing.JLabel sucre2;
    private javax.swing.JLabel sucre3;
    private javax.swing.JLabel sucre4;
    private javax.swing.JLabel sucre5;
    private javax.swing.JLabel sucre6;
    private javax.swing.JLabel sucre7;
    private javax.swing.JLabel sucre8;
    // End of variables declaration//GEN-END:variables
}
